<template>
    <div>
        首页重写 为论坛模式

    </div>
</template>

<script>
    import Schart from 'vue-schart';
    import bus from '../common/bus';

    export default {
        name: 'dashboard',
        data() {
            return {
                name: this.$cookie.get('loginUser'),
                avatar: this.$cookie.get('avatar'),
                user: null
            }
        },
        components: {
        },
        computed: {
        },
        created() {
        },
        activated() {
        },
        deactivated() {
            window.removeEventListener('resize', this.renderChart);
            bus.$off('collapse', this.handleBus);
        },
        methods: {
            changeDate() {
                const now = new Date().getTime();
                this.data.forEach((item, index) => {
                    const date = new Date(now - (6 - index) * 86400000);
                    item.name = `${date.getFullYear()}/${date.getMonth() + 1}/${date.getDate()}`
                })
            }
        }
    }

</script>


<style scoped>

</style>
